define(["jquery", "easy-admin"], function ($, ea) {

    var init = {
        table_elem: '#currentTable',
        table_render_id: 'currentTableRenderId',
        index_url: 'benefit.well_number/index',
        export_url: 'benefit.well_number/export',
    };

    return {

        index: function () {
            ea.table.render({
                init: init,
                toolbar: ['refresh'],
                cols: [[
                    {type: 'checkbox'},
                    {field: 'id', title: 'ID',width:80},
                    {field: 'well_number', title: '井号'},
                    {field: 'management_unit', title: '管理区',search:false},
                    {field: 'oilgas_unit', title: '油气田',search:false},
                    {field: 'start_date', title: '开工日期',search:false},
                    {field: 'end_date', title: '完工日期',search:false},
                    {field: 'work_type', title: '工作类别',search:false},
                    {field: 'file', title: '文件'},
                ]],
            });

            ea.listen();
        },
    };
});